<template>
  <!-- Table 表格组件 -->
  <div>
    <el-table :data="newdevTable" style="width: 100%" class="tableData" :height="tableStyle.TableHight" :header-cell-style="{ 'text-align': 'center' }" :cell-style="{ 'text-align': 'center' }" ref="table1">
      <el-table-column v-for="(item, index) in dataList" :key="index" :prop="item.prop" :label="item.label">
      </el-table-column>
    </el-table>
    <slot name="tab-bttom"></slot>
  </div>
</template>

<script>
export default {
  components: {},
  // props: ["dataList", "devTable"], // dataList:数据列表配置对象 devTable：列表数据
  props: {
    dataList: {},
    devTable: {},
    tableStyle: {
      Type: Object,
      default () {
        return {
          TableHight: "180",
        };
      },
    },
    showSum: {
      Type: Boolean,
      default: false,
    },
  }, // dataList:数据列表配置对象 devTable：列表数据
  data () {
    return {
      //搜索框
      // suoS: {},
    };
  },
  computed: {
    newdevTable () {
      return this.devTable;
    },
  },

  methods: {},
};
</script>

<style lang="scss" scoped>
/deep/ .el-table {
  border: none;
}
.tableData {
  // padding: 0 20px;
}
</style>
